package edu.udo.sopra10.chaturaji.ai;

import java.util.Collection;
import java.util.LinkedList;

import edu.udo.sopra10.chaturaji.entities.Player;
import edu.udo.sopra10.chaturaji.entities.coordinates.Position;
import edu.udo.sopra10.chaturaji.entities.pieces.Piece;

public class AIMoveTreeMove extends AIMoveTreeAbstract {
	
	private Piece piece;
	private Position position;
	private Player currentPlayer;
	
	
	private Collection<AIMoveTreeDice> aiMoveTreeDices;
	
	AIMoveTreeMove(Player player, Piece piece, Position position){
		aiMoveTreeDices = new LinkedList<AIMoveTreeDice>();
		currentPlayer = player;
		this.piece = piece;
		this.setPosition(position);
	}
	
	public void addChild(AIMoveTreeDice element){
		aiMoveTreeDices.add(element);
	}
	
	public void deleteChild(AIMoveTreeDice element){
		aiMoveTreeDices.remove(element);
	}
	
	public Collection<AIMoveTreeDice> getChildren(){
		return aiMoveTreeDices;
	}

	public void setPiece(Piece piece) {
		this.piece = piece;
	}

	public Piece getPiece() {
		return piece;
	}

	public void setCurrentPlayer(Player currentPlayer) {
		this.currentPlayer = currentPlayer;
	}

	public Player getCurrentPlayer() {
		return currentPlayer;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

	public Position getPosition() {
		return position;
	}
}
